/*! * ScrollTrigger 3.11.5-beta * https://greensock.com * * @license Copyright 2023, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,(function(e){"use strict";function _defineProperties(e,t){for(var r=0;r=Math.abs(r)?t:r}function O(){(Ae=we.core.globals().ScrollTrigger)&&Ae.core&&function(){var e=Ae.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,qe),ze=t,qe=n,i=function(e,t){return r[e](t)}}()}function P(e){return(we=e||r())&&"undefined"!=typeof document&&document.body&&(Te=window,ke=(Ce=document).documentElement,Ee=Ce.body,t=[Te,Ce,ke,Ee],we.utils.clamp,Le=we.core.context||function(){},Oe="onpointerenter"in Ee?"pointer":"mouse",Pe=k.isTouch=Te.matchMedia&&Te.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Te||0=o,n=Math.abs(t)>=o;T&&(r||n)&&T(se,e,t,be,me),r&&(m&&0Math.abs(t)?"x":"y",ie=!0),"y"!==ae&&(be[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(me[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(Ue):Ue()}function Xe(e){if(!Se(e,1)){var t=(e=M(e,s)).clientX,r=e.clientY,n=t-se.x,o=r-se.y,i=se.isDragging;se.x=t,se.y=r,(i||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(h&&(re=!0),i||(se.isDragging=!0),We(n,o),i||d&&d(se))}}function Ze(t){if(!Se(t,1)){C(I?i:ve,De[1],Xe,!0);var e=!isNaN(se.y-se.startY),r=se.isDragging&&(3=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=i(e);return!t||Math.abs(n-e)r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in R?R[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function wb(e,t,r,n,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,p=o.fontWeight,d=He.createElement("div"),g=Fa(r)||"fixed"===z(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?Ge:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Ne?S:T)+":"+(i+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=b,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=y,d.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(d,v.children[0]):v.appendChild(d),d._offset=d["offset"+n.op.d2],q(d,0,n,b),d}function Bb(){return 34Ge.clientWidth)||(ze.cache++,v?w=w||requestAnimationFrame(j):j(),gt||Y("scrollStart"),gt=dt())}function Db(){y=je.innerWidth,m=je.innerHeight}function Eb(){ze.cache++,rt||h||He.fullscreenElement||He.webkitFullscreenElement||b&&y===je.innerWidth&&!(Math.abs(je.innerHeight-m)>.25*je.innerHeight)||c.restart(!0)}function Hb(){return qb($,"scrollEnd",Hb)||Dt(!0)}function Kb(e){for(var t=0;t=O}))},Se.update=function(e,t,r){if(!pe||r||e){var n,o,i,a,s,l,c,u=ct?Q:Se.scroll(),f=e?0:(u-P)/R,p=f<0?0:1=Ja(be,he),fe)if(e||!n&&!l)fc(ie,X);else{var g=kt(ie,!0),h=u-P;fc(ie,Ge,g.top+(he===Ne?h:0)+Ct,g.left+(he===Ne?0:h)+Ct)}Rt(n||l?q:I),j&&p<1&&n||b(N+(1!==p||l?0:V))}}else b(Ca(N+V*p));!ue||C.tween||rt||pt||W.restart(!0),ee&&(s||ce&&p&&(p<1||!lt))&&Qe(ee.targets).forEach((function(e){return e.classList[n||ce?"add":"remove"](ee.className)})),!$||ve||e||$(Se),a&&!rt?(ve&&(c&&("complete"===i?T.pause().totalProgress(1):"reset"===i?T.restart(!0).pause():"restart"===i?T.restart(!0):T[i]()),$&&$(Se)),!s&<||(te&&s&&Qa(Se,te),xe[o]&&Qa(Se,xe[o]),ce&&(1===p?Se.kill(!1,1):xe[o]=0),s||xe[o=1===p?1:3]&&Qa(Se,xe[o])),de&&!n&&Math.abs(Se.getVelocity())>(Na(de)?de:2500)&&(Pa(Se.callbackAnimation),H?H.progress(1):Pa(T,"reverse"===i?1:!p,1))):ve&&$&&!rt&&$(Se)}if(x){var v=pe?u/pe.duration()*(pe._caScrollDist||0):u;y(v+(D._isFlipped?1:0)),x(v)}S&&S(-u/pe.duration()*(pe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,pb(be,"resize",Eb),pb(me?He:be,"scroll",Cb),Me&&pb(ScrollTrigger,"refreshInit",Me),!1!==e&&(Se.progress=G=0,k=E=ke=Pe()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&C?C.tween:H},Se.setPositions=function(e,t){ie&&(N+=e-P,V+=t-e-R,ae===St&&Se.adjustPinSpacing(t-e-R)),Se.start=P=e,Se.end=O=t,R=t-e,Se.update()},Se.adjustPinSpacing=function(e){if(U){var t=U.indexOf(he.d)+1;U[t]=parseFloat(U[t])+e+Ct,U[1]=parseFloat(U[1])+e+Ct,Rt(U)}},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(!0,!0),Se.enabled=Se.isActive=!1,t||H&&H.pause(),Q=0,n&&(n.uncache=1),Me&&qb(ScrollTrigger,"refreshInit",Me),W&&(W.pause(),C.tween&&C.tween.kill()&&(C.tween=0)),!me)){for(var r=Ot.length;r--;)if(Ot[r].scroller===be&&Ot[r]!==Se)return;qb(be,"resize",Eb),qb(be,"scroll",Cb)}},Se.kill=function(e,t){Se.disable(e,t),H&&!t&&H.kill(),a&&delete At[a];var r=Ot.indexOf(Se);0<=r&&Ot.splice(r,1),r===ot&&0i&&(b()>i?a.progress(1)&&b(i):a.resetTo("scrollY",i))}Oa(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,i,l,o,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,p=e.onRelease,d=J(e.target)||Ke,g=Je.core.globals().ScrollSmoother,h=g&&g.get(),v=E&&(e.content&&J(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=K(d,Ne),m=K(d,Ye),y=1,x=(k.isTouch&&je.visualViewport?je.visualViewport.scale*je.visualViewport.width:je.outerWidth)/je.innerWidth,w=0,_=Ma(t)?function(){return t(n)}:function(){return t||2.8},S=mc(d,e.type,!0,r),M=Ba,T=Ba;return v&&Je.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return E&&"touchmove"===e.type&&function(){if(o){requestAnimationFrame(Gp);var e=Ca(n.deltaY/2),t=T(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ca((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=ze.cache,j()}return!0}b.offset&&Kp(),o=!0}()||1.05=i||i-1<=r)&&Je.to({},{onUpdate:Qp,duration:o})}else s.restart(!0);p&&p(e)},e.onWheel=function(){a._ts&&a.pause(),1e3